﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VR.Params
{
    public class VideoUrlParam: VRBaseParam
    {
        /// <summary>
        ///  待修改作品id
        /// </summary>
        public int file_id { get; set; }
        /// <summary>
        ///  宣传地址
        /// </summary>
        public string spread_url { get; set; }
    }
    /// <summary>
    ///  商品上架
    /// </summary>
    public class PutGoodsModel
    {
        /// <summary>
        ///  商品id
        /// </summary>
        [Required]
        public int fileid { get; set; }
    }
    /// <summary>
    ///  更新商品状态
    /// </summary>
    public class PutGoodsStatus: PutGoodsModel
    {
        /// <summary>
        ///  状态 【0=待提交；1=待上架；4=已下架；5=已上架；】
        /// </summary>
        [Required]
        [RegularExpression("^([0,1,4,5])$", ErrorMessage = "请正确输入状态：0=待提交；1=待上架；4=已下架；5=已上架；")]
        public int fileStatus { get; set; }
    }
}